<?php
/**
* @version		$Id: view.html.php 10214 2008-04-19 08:59:04Z yopensource $
* @package		YOS
* @subpackage	News Crawler
* @copyright	Copyright (C) 2005 - 2008 YOS. All rights reserved.
* @license		GNU/GPL, see LICENSE.php
*/

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die( 'Restricted access' );

jimport( 'joomla.application.component.view');


/**
 * HTML View class for the News Crawler component
 *
 * @static
 * @package		YOS
 * @subpackage	YOS News crawler
 * @since 1.0
 */
class YOS_NewsViewRestore extends JView
{
	function display($tpl = null)
	{
		/*
		 * Set toolbar items for the page
		 */
		JHTML::stylesheet( 'yos_news_crawler.css', 'administrator/components/com_yos_news_crawler/assets/' );
		JToolBarHelper::title( JText::_( 'Restore News Crawler'), 'upload' );
		
		JToolBarHelper::help( 'screen.installer' );
		JSubMenuHelper::addEntry('Links Manager', 'index.php?option=com_yos_news_crawler&task=linkmanager', false);
		JSubMenuHelper::addEntry('Links Receive', 'index.php?option=com_yos_news_crawler&task=linkcheck', false);
		JSubMenuHelper::addEntry('Restore', 'index.php?option=com_yos_news_crawler&task=restore', true);
		JSubMenuHelper::addEntry('About', 'index.php?option=com_yos_news_crawler&task=about', false);

		$paths = new stdClass();
		$paths->first = '';

		$this->assignRef('paths', $paths);
		$this->assignRef('state', $this->get('state'));

		parent::display($tpl);
	}
}